import request from "@/utils/request";


export function getUserGroupListApi () {
	return request({
		url: '/usergroup',
		method: 'get'
	})
}


export function addUserGroupApi(params) {
	return request({
		url: '/usergroup',
		method: 'post',
		data: params
	})
}

export function updateUserGroupApi(id,params) {
	return request({
		url: '/usergroup/' + id,
		method: 'put',
		data: params
	})
}

export function deleteUserGroupApi(id) {
	return request({
		url: '/usergroup/' + id,
		method: 'delete',
	})
}

export function manualUpdateUserGroupDataApi(id){
	return request({
		url: '/usergroup/' + id + '/update',
		method: 'get',
	})
}

export function createExportTaskApi(id,params) {
	return request({
		url: '/usergroup/' + id + '/export',
		method: 'put',
		data: params
	})
}

export function queryExportProgressApi(id,params) {
	return request({
		url: '/usergroup/export/' + id + '/progress',
		method: 'get',
		params: params
	})
}
